import { RouteRecordRaw } from 'vue-router';

const defaultRoutes: RouteRecordRaw[] = [
	{
		path: '/',
		name: 'RootRoute',
		component: () => import('@/layouts/index.vue'),
		redirect: '/deskboard',
		children: [
			{
				path: '/user/user-info',
				component: () => import('@/views/user/user-info.vue'),
				meta: {
					menu: {
						id: 'user:user-info',
						path: '/user/user-info',
						name: '用户信息',
					},
				},
			},
			{
				path: '/user/change-password',
				component: () => import('@/views/user/change-password.vue'),
				meta: {
					menu: {
						id: 'user:change-password',
						path: '/user/change-password',
						name: '修改密码',
					},
				},
			},
		],
	},
];

export default defaultRoutes;
